package top.aprillie.mamabike.security;

import lombok.Data;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
import top.aprillie.mamabike.user.entity.UserElement;

import java.util.Collection;

/**
 * @Author: illure
 * @Description:
 * @Date: Created in 19:00 2018/2/11
 * @Modified By:
 */
@Data
public class RestAuthenticationToken extends AbstractAuthenticationToken {
    public RestAuthenticationToken(Collection<? extends GrantedAuthority> authorities) {
        super(authorities);
    }

    private UserElement user;

    @Override
    public Object getCredentials() {
        return null;
    }

    @Override
    public Object getPrincipal() {
        return null;
    }
}
